package chain;

/**
 * @author sk.z
 */
public class FilterNameImpl implements Filter {

    private String name;

    public FilterNameImpl(String name){
        this.name = name;
    }

    @Override
    public void doFilter(FilterChain chain) {
        System.out.println("filter "+ this.name + "\t>>");
        chain.doFilter();
        System.out.println("filter "+ this.name + "\t<<");
    }
}
